package com.cskaoyan.catmall.model.vo.czx.wx;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Author: 逍遥子
 * @Date: 2022/01/11/9:52
 * @Description:
 */
@NoArgsConstructor
@Data
public class CartVo {

    private CartTotalDTO cartTotal;
    private List<CartListDTO> cartList;

    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class CartTotalDTO {
        private Integer goodsCount;
        private Integer checkedGoodsCount;
        private double goodsAmount;
        private double checkedGoodsAmount;
    }

    @NoArgsConstructor
    @Data
    public static class CartListDTO {
        private Integer id;
        private Integer userId;
        private Integer goodsId;
        private String goodsSn;
        private String goodsName;
        private Integer productId;
        private Integer price;
        private Integer number;
        private String[] specifications = {"标准"};
        private Boolean checked;
        private String picUrl;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }
}
